<!doctype html>
<html>
<head>
<title>Tweepee</title>
{% load static %}
<link rel=stylesheet type=text/css href="{% static 'twitter/style.css' %}">
</head>
<body>
<div class=page>
  <h1><a href="{% url 'twitter:home' %}">Tweepee</a></h1>
  <div class=metanav>
  {% if not user.is_authenticated %}
    <a href="{% url 'account:login' %}">log in</a>
    <a href="{% url 'account:join' %}">join</a>
  {% else %}
    <a href="{% url 'twitter:public_timeline' %}">public timeline</a>
    <a href="{% url 'twitter:create' %}">create</a>
    <a href="{% url 'account:logout' %}">log out</a>
  {% endif %}
  </div>
  {% for message in messages %}
    <div class=flash>{{ message }}</div>
  {% endfor %}
  {% block body %}{% endblock %}
</div>
</body>
</html>
